const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function(app) {
    // ...
    app.use("/api",createProxyMiddleware({
        // 将要代理的地址
        target:"https://you.163.com",
        changeOrigin:true,
        pathRewrite:{
            "^/api":""
        }
    }))

    app.use('/yinghua',createProxyMiddleware({
        target:"http://www.58yinghua.com",
        changeOrigin:true,
        pathRewrite:{
            '^/yinghua':""
        }
    }))
  };